﻿using EntityModels.E09.Files;

namespace IRepositories
{
    public interface IFileHashRepository
    {
        /// <summary>
        /// 创建文件hash
        /// </summary>
        /// <param name="fileHash"></param>
        /// <returns></returns>
        Task<FileHash> CreateAsync(FileHash fileHash);
        /// <summary>
        /// 通过hash查找文件
        /// </summary>
        /// <param name="hssh"></param>
        /// <returns></returns>
        Task<FileHash> FindAsync(string hash);
    }
}
